#include <iostream>

using namespace std;

int main()
{
	cout << "Enter how many lines you wanna display: ";
	int line;
	cin >> line;
	
	for(int i = 1; i <= line; i++)
	{
		for(int j = line - i; j > 0; j--)
			cout << ".";
		for(int k = i; k > 0; k--)
			cout << "*";
		cout << endl;
	}
	
	return 0;
}
